package com.bean;

import org.hibernate.annotations.Entity;

@Entity
public class Teacher {
	private int id;
	private String tid;
	private String tname;
	private int tauthority;
	private String tcourse;
	
	public int getTauthority() {
		return tauthority;
	}
	public void setTauthority(int tauthority) {
		this.tauthority = tauthority;
	}
	public String getTcourse() {
		return tcourse;
	}
	public void setTcourse(String tcourse) {
		this.tcourse = tcourse;
	}
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public String getTid() {
		return tid;
	}
	public void setTid(String tid) {
		this.tid = tid;
	}
	public String getTname() {
		return tname;
	}
	public void setTname(String tname) {
		this.tname = tname;
	}
	@Override
	public String toString() {
		return "Teacher [id=" + id + ", tid=" + tid + ", tname=" + tname
				+ ", tauthority=" + tauthority + ", tcourse=" + tcourse + "]";
	}
	

}
